/**
* 配置路由
**/

  //大赞北京列表页
const List = resolve => {require.ensure(['./list/index.vue'], () => {resolve(require('./list/index.vue'))})}
//大赞北京列表页
const Detail = resolve => {require.ensure(['./detail/index.vue'], () => {resolve(require('./detail/index.vue'))})}

const routers = [
  //入口
  {
    path: '/',
    redirect: '/list',
  },
  //列表页面
  {
    name: 'list',
    path: '/list',
    component: List
  },
  //详情
  {
    name: 'detail',
    path: '/detail/:id',
    component: Detail
  }
]
export default routers
